﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>zyOffice for ckeditor4</title>
    <link type="text/css" rel="Stylesheet" href="demo.css" />
    <script type="text/javascript" src="zyoffice/js/json2.min.js" charset="utf-8"></script>
    <script type="text/javascript" src="zyoffice/js/jquery-1.8.3.min.js" charset="utf-8"></script>
    <script type="text/javascript" src="ckeditor/ckeditor.js"></script>
    <script type="text/javascript" src="zyoffice/js/layer-3.1.1/layer.js" charset="utf-8"></script>
    <script type="text/javascript" src="zyoffice/js/w.layer.js" charset="utf-8"></script>
    <script type="text/javascript" src="demo.js" charset="utf-8"></script>
</head>
<body>
    <div id="demos"></div>    
    <!--创建FCKEditor控件-->
    <textarea id="editor1" name="editor1">zyOffice for ckeditor4，使用layer弹窗组件</textarea>
    <script type="text/javascript">
        zyOffice.getInstance({
            word:"http://localhost:13710/zyoffice/word/convert",
			wordExport:"http://localhost:13710/zyoffice/word/export",
            pdf:"http://localhost:13710/zyoffice/pdf/upload"            
        });//加载控件

        CKEDITOR.config.extraPlugins = 'zyoffice,zywordexport,zyofficepdf';

        //加载CKEditor编辑器
        CKEDITOR.replace('editor1');
    </script>
</body>
</html>